import Vue from "vue";
import Router from "vue-router";
Vue.use(Router);
//登陆
import {
	Login,
	MainView,
	HomePage
} from "@/views/index.js"

//维保概述
import {
	Summarize
} from "@/components/Summarize/index.js"

//数据统计
import {
	OldStatistics
} from "@/components/OldStatistics/index.js"

//电梯实时监控
import {
	OperationMonitoring,
	MonitoringDetails,
	HowTheElevator,
	HowTheElevatorDetail,
	StatisticsMess,
	TestMess,
	MintenanceMess,
	BaseInfo,
	Alarm
} from "@/components/RealTimeElevatorMonitoring/index.js"

//电梯故障管理
import {
	ElevatorFaultRecord,
	EleFaultRecordDetails,
	ElevatorFaultRecordStatis,
	SiteUseTrouble,
	MalfunctionAnalysis
} from "@/components/ElevatorFaultManagement/index.js"

//电梯数据统计
import {
	LiftSummarize,
	LiftDistribute,
	LiftBuildingUser,
	LiftBrand,
	LiftMaintenanceUnit,
	LiftMainState,
	LiftOperation,
	LiftSerState,
	LiftStat,
	LiftEmergency,
	LiftPhysical,
	Diagnose
} from "@/components/ElevatorStatistics/index.js"

//电梯保养
import {
	MainPlan,
	MainPact,
	LiftManage,
	LiftBound,
	MainHistory,
	MainTenance,
	MainEmploy,
	MainPerson
} from "@/components/ElevatorMaintenance/index.js"

//维修管理
import {
	LiftInternetSer,
	LiftService,
	FittingsManagement
} from "@/components/MaintenanceAndRepair/index.js"

//电梯应急救援安抚
import {
	RescueComfort
}  from '@/components/RescueComfort/index.js'

//电梯信息发布管理
import {
	ResourceAdmin,
	BroadcastManage,
	SetTheQueue,
	Announcement,
	Scrollqueue,
	ConfigureTerminal
}  from '@/components/ReleaseManagement/index.js'

//故障会诊及分析
import {
	ConsultationAndAnalysis
}  from '@/components/ConsultationAndAnalysis/index.js'

//业务配置管理
import {
	MaintenanceProjectMan,
	PeripheralsMan,
	AddComp,
	Redact,
	Detail,
	AccessManufacturer,
	AccessAdd,
	AccessCom,
	AccessCheck,
	ManufactureCompany,
	ManAdd,
	ManComplie,
	ManDetail
} from "@/components/BusinessConfiguration/index.js"

//系统管理
import {
	EmployAccount,
	LiftLog,
	TenanceAccount,
	RoleManagement,
	AddRoleManagment,
	ChoseAuthorizedElevator,
	ComplieRoleManagement,
	RoleManagementDetail,
	UserCountManage,
	AddRoleCount,
	ComplieRoleCount,
	RoleCountDetail,
	DivisionalManagement,
	AddDivisionalManagement,
	CompliedDivisionalManagement,
	DivisionalManagementDetail,
	InstitutionalFramework,
	AddInstitutionalFramework,
	CompileInstitutionalFramework,
	InstitutionalFrameworkDetail
} from "@/components/SystemManagement/index.js"

export default new Router({
	routes: [
		{
			path: '/',
			redirect: {
				name: "Login"
			}
		},
		{
			path: '/Login',
			name: 'Login',
			component: Login
		},
		{
			path: '/HomePage',
			name: 'HomePage',
			component: HomePage
		},
		{
			path: '/MainView',
			name: 'MainView',
			component: MainView,
			children: [{
					path: 'Summarize',
					name: 'Summarize',
					component: Summarize
				},
				{
					path: 'OldStatistics',
					name: 'OldStatistics',
					component: OldStatistics,
					meta: {
						keepAlive: true
					}
				},
				/* 电梯保养 */
				{
					path: 'ElevatorMaintenance/MainPlan',
					name: 'MainPlan',
					component: MainPlan,
					meta: {
						keepAlive: true
					}
				},
				{
					path: 'ElevatorMaintenance/MainPact',
					name: 'MainPact',
					component: MainPact,
					meta: {
						keepAlive: true
					}
				},
				{
					path: 'ElevatorMaintenance/LiftManage',
					name: 'LiftManage',
					component: LiftManage,
					meta: {
						keepAlive: true
					}
				},
				{
					path: 'ElevatorMaintenance/LiftBound',
					name: 'LiftBound',
					component: LiftBound,
					meta: {
						keepAlive: true
					}
				},
				{
					path: 'ElevatorMaintenance/MainHistory',
					name: 'MainHistory',
					component: MainHistory,
					meta: {
						keepAlive: true
					}
				},
				{
					path: 'ElevatorMaintenance/MainTenance',
					name: 'MainTenance',
					component: MainTenance,
					meta: {
						keepAlive: true
					}
				},
				{
					path: 'ElevatorMaintenance/MainEmploy',
					name: 'MainEmploy',
					component: MainEmploy,
					meta: {
						keepAlive: true
					}
				},
				{
					path: 'ElevatorMaintenance/MainPerson',
					name: 'MainPerson',
					component: MainPerson
				},
				/* 电梯实时监控 */
				{
					path: 'RealTimeElevatorMonitoring/OperationMonitoring',
					name: 'OperationMonitoring',
					component: OperationMonitoring,
					meta: {
						keepAlive: true
					}
				},
				{
					path: 'RealTimeElevatorMonitoring/MonitoringDetails',
					name: 'MonitoringDetails',
					component: MonitoringDetails
				},
				{
					path: 'RealTimeElevatorMonitoring/HowTheElevator',
					name: 'HowTheElevator',
					component: HowTheElevator,
					meta: {
						keepAlive: true
					}
				},
				{
					path: 'RealTimeElevatorMonitoring/HowTheElevatorDetail',
					name: 'HowTheElevatorDetail',
					component: HowTheElevatorDetail
				},
				{
					path: 'RealTimeElevatorMonitoring/MonitoringDetails/StatisticsMess',
					name: 'StatisticsMess',
					component: StatisticsMess
				},
				{
					path: 'RealTimeElevatorMonitoring/MonitoringDetails/TestMess',
					name: 'TestMess',
					component: TestMess
				},
				{
					path: 'RealTimeElevatorMonitoring/MonitoringDetails/MintenanceMess',
					name: 'MintenanceMess',
					component: MintenanceMess
				},
				{
					path: 'RealTimeElevatorMonitoring/MonitoringDetails/BaseInfo',
					name: 'BaseInfo',
					component: BaseInfo
				},
				{
					path: 'RealTimeElevatorMonitoring/MonitoringDetails/Alarm',
					name: 'Alarm',
					component: Alarm
				},
				/* 电梯故障管理 */
				{
					path: 'ElevatorFaultManagement/ElevatorFaultRecord',
					name: 'ElevatorFaultRecord',
					component: ElevatorFaultRecord,
					meta: {
						keepAlive: true
					}
				},
				{
					path: 'ElevatorFaultManagement/ElevatorFaultRecordStatis',
					name: 'ElevatorFaultRecordStatis',
					component: ElevatorFaultRecordStatis,
					
				},
				{
					path: 'ElevatorFaultManagement/EleFaultRecordDetails',
					name: 'EleFaultRecordDetails',
					component: EleFaultRecordDetails,
				},
				{
					path: 'ElevatorFaultManagement/SiteUseTrouble',
					name: 'SiteUseTrouble',
					component: SiteUseTrouble,
				},
				{
					path: 'ElevatorFaultManagement/MalfunctionAnalysis',
					name: 'MalfunctionAnalysis',
					component: MalfunctionAnalysis,
				},
				/* 电梯数据统计 */
				{
					path: 'ElevatorStatistics/LiftSummarize',
					name: 'LiftSummarize',
					component: LiftSummarize
				},
				{
					path: 'ElevatorStatistics/LiftDistribute',
					name: 'LiftDistribute',
					component: LiftDistribute
				},
				{
					path: 'ElevatorStatistics/LiftBuildingUser',
					name: 'LiftBuildingUser',
					component: LiftBuildingUser
				},
				{
					path: 'ElevatorStatistics/LiftBrand',
					name: 'LiftBrand',
					component: LiftBrand
				},
				{
					path: 'ElevatorStatistics/LiftMaintenanceUnit',
					name: 'LiftMaintenanceUnit',
					component: LiftMaintenanceUnit
				},
				{
					path: 'ElevatorStatistics/LiftMainState',
					name: 'LiftMainState',
					component: LiftMainState
				},
				{
					path: 'ElevatorStatistics/LiftOperation',
					name: 'LiftOperation',
					component: LiftOperation
				},
				{
					path: 'ElevatorStatistics/LiftSerState',
					name: 'LiftSerState',
					component: LiftSerState
				},
				{
					path: 'ElevatorStatistics/LiftStat',
					name: 'LiftStat',
					component: LiftStat
				},
				{
					path: 'ElevatorStatistics/LiftEmergency',
					name: 'LiftEmergency',
					component: LiftEmergency
				},
				{
					path: 'ElevatorStatistics/LiftPhysical',
					name: 'LiftPhysical',
					component: LiftPhysical,
					meta:{
						keepAlive:true
					}
				},
				{
					path: 'ElevatorStatistics/Diagnose',
					name: 'Diagnose',
					component: Diagnose
				},
				/* 维修管理 */
				{
					path: 'MaintenanceAndRepair/LiftInternetSer',
					name: 'LiftInternetSer',
					component: LiftInternetSer,
					meta: {
						keepAlive: true
					}
				},
				{
					path: 'MaintenanceAndRepair/LiftService',
					name: 'LiftService',
					component: LiftService,
					meta: {
						keepAlive: true
					}
				},
				{
					path: 'MaintenanceAndRepair/FittingsManagement',
					name: 'FittingsManagement',
					component: FittingsManagement,
					meta: {
						keepAlive: true
					}
				},
				//电梯应急救援安抚
				{
					path: 'RescueComfort',
					name: 'RescueComfort',
					component: RescueComfort,
					meta: {
						keepAlive: true
					}
				},
				//电梯信息发布管理
				{	path: 'ReleaseManagement/ResourceAdmin',
					name: 'ResourceAdmin',
					component: ResourceAdmin,
					meta: {
						keepAlive: true
					}
				},
				{	path: 'ReleaseManagement/BroadcastManage',
					name: 'BroadcastManage',
					component: BroadcastManage,
					meta: {
						keepAlive: true
					}
				},
				{	path: 'ReleaseManagement/BroadcastManage/SetTheQueue',
					name: 'SetTheQueue',
					component: SetTheQueue,
					meta: {
						keepAlive: true
					}
				},
				{	path: 'ReleaseManagement/BroadcastManage/Announcement',
					name: 'Announcement',
					component: Announcement,
					meta: {
						keepAlive: true
					}
				},
				{	path: 'ReleaseManagement/BroadcastManage/Scrollqueue',
					name: 'Scrollqueue',
					component: Scrollqueue,
					meta: {
						keepAlive: true
					}
				},
				{	path: 'ReleaseManagement/BroadcastManage/ConfigureTerminal',
					name: 'ConfigureTerminal',
					component: ConfigureTerminal,
					meta: {
						keepAlive: true
					}
				},
				//故障会诊及分析
				{
					path: 'ConsultationAndAnalysis',
					name: 'ConsultationAndAnalysis',
					component: ConsultationAndAnalysis,
					meta: {
						keepAlive: true
					}
				},
				//业务配置管理
				{
					path: 'BusinessConfiguration/MaintenanceProjectMan',
					name: 'MaintenanceProjectMan',
					component: MaintenanceProjectMan,
					meta: {
						keepAlive: true
					}
				},
				{
					path: 'BusinessConfiguration/PeripheralsMan',
					name: 'PeripheralsMan',
					component: PeripheralsMan,
					meta: {
						keepAlive: true
					}
				},
				{
					path: 'BusinessConfiguration/PeripheralsMan/AddComp',
					name: 'AddComp',
					component: AddComp,
					
				},
				{
					path: 'BusinessConfiguration/PeripheralsMan/Redact',
					name: 'Redact',
					component: Redact,
				},
				{
					path: 'BusinessConfiguration/PeripheralsMan/Detail',
					name: 'Detail',
					component: Detail,
				},
				{
					path: 'BusinessConfiguration/AccessManufacturer',
					name: 'AccessManufacturer',
					component: AccessManufacturer,
					meta: {
						keepAlive: true
					}
				},
				{
					path: 'BusinessConfiguration/AccessManufacturer/AccessAdd',
					name: 'AccessAdd',
					component: AccessAdd,
				},
				{
					path: 'BusinessConfiguration/AccessManufacturer/AccessCom',
					name: 'AccessCom',
					component: AccessCom,
				},
				{
					path: 'BusinessConfiguration/AccessManufacturer/AccessCheck',
					name: 'AccessCheck',
					component: AccessCheck,
				},
				{
					path: 'BusinessConfiguration/ManufactureCompany',
					name: 'ManufactureCompany',
					component: ManufactureCompany,
					meta: {
						keepAlive: true
					}
				},
				{
					path: 'BusinessConfiguration/ManufactureCompany/ManAdd',
					name: 'ManAdd',
					component: ManAdd,
				},
				{
					path: 'BusinessConfiguration/ManufactureCompany/ManComplie',
					name: 'ManComplie',
					component: ManComplie,
				},
				{
					path: 'BusinessConfiguration/ManufactureCompany/ManDetail',
					name: 'ManDetail',
					component: ManDetail,
				},
				/* 系统管理 */
				{
					path: 'SystemManagement/TenanceAccount',
					name: 'TenanceAccount',
					component: TenanceAccount
				},
				{
					path: 'SystemManagement/EmployAccount',
					name: 'EmployAccount',
					component: EmployAccount
				},
				{
					path: 'SystemManagement/LiftLog',
					name: 'LiftLog',
					component: LiftLog,
					meta:{
						keepAlive: true // 需要被缓存
					}
				},
				{
					path: 'SystemManagement/RoleManagement',
					name: 'RoleManagement',
					component: RoleManagement,
					meta: {
						keepAlive: true // 需要被缓存
					}
				},
				{
					path: 'SystemManagement/AddRoleManagment',
					name: 'AddRoleManagment',
					component: AddRoleManagment,
					meta: {
						keepAlive: true // 需要被缓存
					}
				},
				{
					path: 'SystemManagement/ChoseAuthorizedElevator',
					name: 'ChoseAuthorizedElevator',
					component: ChoseAuthorizedElevator
				},
				{
					path: 'SystemManagement/ComplieRoleManagement',
					name: 'ComplieRoleManagement',
					component: ComplieRoleManagement,
					meta: {
						keepAlive: true // 需要被缓存
					}
				},
				{
					path: 'SystemManagement/RoleManagementDetail',
					name: 'RoleManagementDetail',
					component: RoleManagementDetail,
					meta: {
						keepAlive: true // 需要被缓存
					}
				},
				{
					path: 'SystemManagement/UserCountManage',
					name: 'UserCountManage',
					component: UserCountManage,
					meta: {
						keepAlive: true // 需要被缓存
					}
				},
				{
					path: 'SystemManagement/AddRoleCount',
					name: 'AddRoleCount',
					component: AddRoleCount,
					meta: {
						keepAlive: true // 需要被缓存
					}
				},
				{
					path: 'SystemManagement/ComplieRoleCount',
					name: 'ComplieRoleCount',
					component: ComplieRoleCount,
					meta: {
						keepAlive: true // 需要被缓存
					}
				},
				{
					path: 'SystemManagement/RoleCountDetail',
					name: 'RoleCountDetail',
					component: RoleCountDetail,
					meta: {
						keepAlive: true // 需要被缓存
					}
				},
				{
					path: 'SystemManagement/DivisionalManagement',
					name: 'DivisionalManagement',
					component: DivisionalManagement
				},
				{
					path: 'SystemManagement/AddDivisionalManagement',
					name: 'AddDivisionalManagement',
					component: AddDivisionalManagement
				},
				{
					path: 'SystemManagement/CompliedDivisionalManagement',
					name: 'CompliedDivisionalManagement',
					component: CompliedDivisionalManagement
				},
				{
					path: 'SystemManagement/DivisionalManagementDetail',
					name: 'DivisionalManagementDetail',
					component: DivisionalManagementDetail
				},
				{
					path: 'SystemManagement/InstitutionalFramework',
					name: 'InstitutionalFramework',
					component: InstitutionalFramework,
					meta: {
						keepAlive: true // 需要被缓存
					}
				},
				{
					path: 'SystemManagement/AddInstitutionalFramework',
					name: 'AddInstitutionalFramework',
					component: AddInstitutionalFramework
				},
				{
					path: 'SystemManagement/CompileInstitutionalFramework',
					name: 'CompileInstitutionalFramework',
					component: CompileInstitutionalFramework
				},
				{
					path: 'SystemManagement/InstitutionalFramework/InstitutionalFrameworkDetail',
					name: 'InstitutionalFrameworkDetail',
					component: InstitutionalFrameworkDetail
				},
			]
		},
	]
});
